<ion-view view-title="注册">
  <ion-nav-buttons side="left">
    <button style="color: #fff;" class="button button-positive button-clear no-animation"
            ng-click="goBack()"> &nbsp; <i class="ion-chevron-left"></i>
    </button>
  </ion-nav-buttons>
  <ion-content>
    <div ui-view class="list">
      <label class="item item-input item-floating-label">
        <span class="input-label">用户名</span>
        <input type="text" placeholder="邮箱或手机号" ng-model="user.name">
      </label>
      <div class="item item-input-inset">
        <label class="item-input-wrapper">
          <input type="text" placeholder="输入验证码" ng-model="user.iden">
        </label>
        <button class="button button-small">
          发送
        </button>
      </div>
      <label class="item item-input item-floating-label">
        <span class="input-label">设置密码</span>
        <input type="password" placeholder="设置密码" ng-model="user.pwd1">
      </label>
      <label class="item item-input item-floating-label">
        <span class="input-label">再次输入密码</span>
        <input type="password" placeholder="再次输入密码" ng-model="user.pwd2">
      </label>
    </div>
    <div class="padding">
      <button class="button button-full button-positive" ng-click="register()" ng-disabled="!user.name || !user.pwd1||(user.pwd1!=user.pwd2)||!user.iden||!user.check">
       注册
      </button>
    </div>
  <div class="padding" >
  <p style="text-align: center"> <input type="checkbox" ng-model="user.check" ng-click="chk()"> 我已阅读所有相关条例</p>
  </div>
  </ion-content>
</ion-view>
